package com.tanglongan.designPattern.dp06_adapter.demo03.optimize02;

import com.tanglongan.designPattern.dp06_adapter.demo03.oldSystem.ResultMsg;

public class LoginForWeChatAdapter extends AbstractAdapter {

    @Override
    public boolean support(Object object) {
        return object instanceof LoginForWeChatAdapter;
    }

    @Override
    public ResultMsg login(String id, Object adapter) {
        if (!support(adapter)) return null;
        return super.loginForRegist(id, null);
    }
    
}
